#include "Server.hpp"
#include <iostream>
using namespace std;

int main()
{
    Server server;
    server.OpenPipeForRead();

    string message;
    while(true)
    {
        if(server.RecPipe(&message) > 0)
            cout<<"Client say: "<<message<<endl;
        else 
            break;
    }
    cout<<"Client quit, me too!"<<endl;
    server.ClosePipe();
    return 0;
}